﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace WanDa.IBll
{
    public interface IBaseBll<T> where T : class,new()
    {
        bool Add(T model);
        bool Del(int id);
        bool Upd(T model);
        IQueryable<T> Show(Expression<Func<T, bool>> whereLambda);
        IQueryable<T> ShowPage<type>(int pageSize, int pageIndex, bool isAsc, Expression<Func<T, type>> OrderByLambda, Expression<Func<T, bool>> WhereLambda);
    }
}
